<?
include_once "_common.php";
include_once("config.php"); 

// 포인트 결제 대기 필드 추가
//sql_query(" ALTER TABLE `$g4[yc4_order_table]` ADD `od_temp_point` INT NOT NULL AFTER `od_temp_card` ", false);

$g4[title] = "로그인";

include($shop['include_head']);

?>

<br>
<br>
<br>
<form name="flogin" method="post" action="javascript:flogin_submit(document.flogin);" autocomplete="off" style="padding:0px;">
<input type="hidden" name="url" value='<?=$urlencode?>'>
<table cellpadding=2 bgcolor=#F6F6F6 align=center>
<tr><td>
    <table width=480 bgcolor=#FFFFFF cellpadding=0 border=0>
    <tr><td align=center height=60><img src='./img/title_login.gif'></td></tr>
    <tr>
        <td>
            <table>
            <tr>
                <td>
                    <table>
                    <tr>
                        <td width=120 align=right>아이디</td>
                        <td>&nbsp;&nbsp;<input class=ed maxlength=20 size=15 id='login_mb_id' name=mb_id itemname="아이디" required minlength="2" value=""></td>
                    </tr>
                    <tr>
                        <td width=120 align=right>패스워드</td>
                        <td>&nbsp;&nbsp;<input type=password class=ed maxlength=20 size=15 name=mb_password itemname="패스워드" required value=""></td>
                    </tr>
                    </table>
                </td>
                <td><input type=image src='./img/btn_confirm.gif' border=0 align=absmiddle></td>
            </tr>
            </table>
        </td>
    </tr>
    <tr><td height=30 align=center><a href="<?=$g4[bbs_path]?>/register.php"><img src='./img/btn_member_join.gif' border=0></a>
            <a href="javascript:;" onclick="win_password_forget('<?=$g4[bbs_path]?>/password_forget.php');"><img src='./img/btn_passfind.gif' border=0></a></td></tr>
    <tr><td background='./img/dot_line.gif'></td></tr>
    <tr><td height=60 style='padding-left:70px; line-height:150%'>
        · 회원이 아니실 경우에는 '무료 회원가입'을 하십시오.<br>
        · 패스워드를 잊으셨다면 '아이디/패스워드 찾기'로 찾으시면 됩니다.</td></tr>
    </table></td></tr>
</table>
</form>

<script language='Javascript'>
document.getElementById('login_mb_id').focus();

function flogin_submit(f)
{
    f.action = "<?=$g4[bbs_path]?>/login_check.php";
    f.submit();
}
</script>




<? // 쇼핑몰 사용시 여기부터 ?>

    <!-- 주문하기, 신청하기 -->
    <? if (preg_match("/orderform.php$/", $url)) { ?>

        <br>
        <table width=480 cellpadding=3 cellspacing=0 align=center bgcolor=#F6F6F6>
        <tr><td align=center>
            <table  width=480 bgcolor=#FFFFFF cellpadding=0>
            <tr><td  height=60 align=center><img src='./img/title_guest.gif'></td></tr>
            <tr><td  style='padding-left:70px;'>
                · 비회원으로 주문하시는 경우 <font color=#2E84B4>포인트는 지급하지 않습니다.</font></td></tr>
            <tr><td align=center height=100><a href="javascript:guest_submit(document.flogin);"><img src='./img/btn_guest.gif' border=0></a></td></tr>
            </table></td></tr>
        </table>

        <script language="javascript">
        function guest_submit(f)
        {
            //f.action = "<?=$g4[shop_path]?>/order.php";
            f.url.value = "<?=$url?>";
            f.action = "<?=$url?>";
            f.submit();
        }
        </script>

    <? } ?>

        <br>
        <form name="guest_form" method=post action="<?=$url?>" autocomplete="off" style="padding:0px;">
        <table cellpadding=2 bgcolor=#F6F6F6 align=center>
        <tr><td>
            <table width=480 bgcolor=#FFFFFF cellpadding=0>
            <tr><td align=center height=60><img src='./img/title_order.gif'></td></tr>
            <tr>
                <td>
                    <table>
                    <tr>
                        <td>
                            <table>
                            <tr>
                                <td width=120 align=right>주문자 성명</td>
                                <td>&nbsp;&nbsp;<input type=text name=od_name size=18 class=ed required itemname="주문자 성명" value="<? echo $od_id ?>"></td>
                            </tr>
                            <tr>
                                <td width=120 align=right>패스워드</td>
                                <td>&nbsp;&nbsp;<input type=password name=od_pwd size=18 class=ed required itemname="패스워드"></td>
                            </tr>
                            </table>
                        </td>
                        <td><input type=image src='./img/btn_confirm.gif' border=0 align=absmiddle></td>
                    </tr>
                    </table>
                </td>
            </tr>
            <tr><td background='./img/dot_line.gif'></td></tr>
            <tr><td height=60 style='padding-left:70px; line-height:150%'>
                · 주문서 작성시 입력한 주문자명을 입력하십시오.<br>
                · 주문서 작성시 입력한 '패스워드'를 입력하십시오.</td></tr>
            </table></td>
        </tr>
        </table>
        </form>


<? // 쇼핑몰 사용시 여기까지 반드시 복사해 넣으세요 ?>
<?
include_once($shop['include_tail']);
?>
